'use strict';

module.exports = app => {
  const { STRING, INTEGER, DATE, UUIDV4, UUID, BOOLEAN } = app.Sequelize;

  const Admins = app.model.define('admins', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    name: STRING(30),
    age: INTEGER,
    is_able: BOOLEAN,
    province_code: STRING(10),
    city_code: STRING(10),
    county_code: STRING(10),
    address: STRING(10),
    id_number: STRING(24),
    created_at: DATE,
    updated_at: DATE,
    uuid: { type: UUID, defaultValue: UUIDV4 },
  });

  return Admins;
};

